﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NbMeterServices.Entity
{
    /// <summary>
    /// 阶梯价格
    /// </summary>
    [SugarTable("MR_TieredPricing", "阶梯价格")]
    public class MrTieredPricing
    {
        /// <summary>
        /// 雪花Id
        /// </summary>
        [SugarColumn(ColumnName = "Id", ColumnDescription = "主键Id", IsPrimaryKey = true, IsIdentity = false)]
        public long Id { get; set; }

        /// <summary>
        /// 软删除
        /// </summary>
        [SugarColumn(ColumnDescription = "软删除")]
        public virtual bool IsDelete { get; set; } = false;
        /// <summary>
        /// 所属价格
        /// </summary>
        [SugarColumn(ColumnName = "ChargingSettingsId", ColumnDescription = "所属价格")]
        public long? ChargingSettingsId { get; set; }

        /// <summary>
        /// 基础价格
        /// </summary>
        [SugarColumn(ColumnName = "BaseRate", ColumnDescription = "基础价格", Length = 8, DecimalDigits = 2)]
        public decimal? BaseRate { get; set; }

        /// <summary>
        /// 额外费用
        /// </summary>
        [SugarColumn(ColumnName = "SurchargeRate", ColumnDescription = "额外费用", Length = 8, DecimalDigits = 2)]
        public decimal? SurchargeRate { get; set; }

        /// <summary>
        /// 流理阈值
        /// </summary>
        [SugarColumn(ColumnName = "Threshold", ColumnDescription = "流量阈值", Length = 8, DecimalDigits = 3)]
        public decimal? Threshold { get; set; }

        /// <summary>
        /// 租户Id
        /// </summary>
        [SugarColumn(ColumnName = "TenantId", ColumnDescription = "租户Id")]
        public long? TenantId { get; set; }

    }
}
